package com.liveinstars.im.domain.dao.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.liveinstars.im.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * <p>
 * 登录用户信息表
 * </p>
 *
 * @author 8btc
 * @since 2020-04-29
 */
@Data
@ToString
public class UserOnlineInfo extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * userId
     */
    private Long userId;

    /**
     * 聊天服务器id
     */
    private Long chatServerId;

    /**
     * 在线状态
     */
    private Integer onlineStatus;

    /**
     * appCode
     */
    private String appCode;

    /**
     * 客户端类型
     */
    private String clientType;

    /**
     * 设备号
     */
    private String clientId;

    /**
     * 通道id
     */
    private String channelId;

    /**
     * 创建时间
     */
    private LocalDateTime cstCreated;

    /**
     * 最后修改时间
     */
    private LocalDateTime cstModified;

}
